/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package us.oh.k12.wkw.robot.command;

/**
 *
 * @author Team4145
 */
public class LauncherAngleToZeroCmd extends CommandBase{
    
    public LauncherAngleToZeroCmd() {
        
        super("LauncherAngleToZeroCmd");
        requires(this.getLaunchFrisbeeSystem());
        
    }
    
    protected void initialize() {
        
    
    }
    
    protected void execute() {
        
        this.getLaunchFrisbeeSystem().turnOnDownAngle();
        
    }
    protected void end() {
        this.getLaunchFrisbeeSystem().stopChangingAngle();
    }
    
    protected boolean isFinished() {
        
        return(this.getLaunchFrisbeeSystem().getCurrentAngle()<2);
        
    }
    
}
